package com.pb.infra.oth.exception;

import lombok.Getter;

/**
 * 异常信息处理
 */
@Getter
public class AppAuthException extends RuntimeException {

    private final transient Object[] params;

    private final String code;

    public AppAuthException(ErrorCode.ErrorCodeEnum errorCodeEnum, Object... params) {
        super(errorCodeEnum.getMessage());
        this.params = params;
        this.code = errorCodeEnum.getCode();
    }
}
